﻿namespace EventbriteApi.Model
{
    using System.Collections.Generic;

    [System.Xml.Serialization.XmlRoot(ElementName = "user", Namespace = "", IsNullable = false)]
    public class User
    {
        [System.Xml.Serialization.XmlElement("user_id")]
        public long Id { get; set; }

        [System.Xml.Serialization.XmlElement("email")]
        public string Email { get; set; }

        [System.Xml.Serialization.XmlElement("first_name")]
        public string FirstName { get; set; }

        [System.Xml.Serialization.XmlElement("last_name")]
        public string LastName { get; set; }
        
        [System.Xml.Serialization.XmlElement("user_key")]
        public string UserKey { get; set; }

        [System.Xml.Serialization.XmlElement("date_created")]
        public string DateCreated { get; set; }

        [System.Xml.Serialization.XmlElement("date_modified")]
        public string DateModified { get; set; }

        [System.Xml.Serialization.XmlArrayItem("subuser", IsNullable = true)]
        [System.Xml.Serialization.XmlArray("subusers")]
        public List<SubUser> SubUsers { get; set; }
    }
}
